<?php


function jquery_upgrade($version_base, $version_ini)
{
	require_once $GLOBALS['babInstallPath'].'utilit/functionalityincl.php';
	$functionalities = new bab_functionalities();

	if (false === $functionalities->register('jquery', $GLOBALS['babAddonPhpPath'] . 'jquery.php')) {
		return false; 
	}

	return true;
}



function jquery_onDeleteAddon() {

	require_once $GLOBALS['babInstallPath'].'utilit/functionalityincl.php';
	$functionalities = new bab_functionalities();

	if (false === $functionalities->unregister('jquery')) {
		return false;
	}

	return true;
}